package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @description:接口
 * @author :又菜又爱玩的→速趴塞亚锦←
 * @create :2023/5/17
 * @param  :1.8
 */
public interface HospitalService{
    void saveHospital(Map<String, Object> resultMap);

    String getSignKeyWithHoscode(String requestHoscode);

    Hospital getHospitalByHoscode(String hoscode);
    //带查询条件的医院的分页展示展示
    Page<Hospital> getHospitalPage(Integer pageNum, Integer pageSize, HospitalQueryVo hospitalQueryVo);
    //根据医院id修改医院状态
    void updateStatus(String id, Integer status);
    //根据医院id医院的所有信息
    Hospital detail(String id);


    //用户端模糊查询
    List<Hospital> findByNameLike(String name);
    //用户端点击医院显示详情信息
    Hospital getHospitalDetail(String hoscode);
}
